package yesjava;


import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Main {
    // 1984-3-18 13:5:00 000
    public static void main(String[] args) {
        Calendar calendar  = Calendar.getInstance();
        calendar.set(Calendar.YEAR,1984);
        calendar.set(Calendar.MONTH,2);
        calendar.set(Calendar.DAY_OF_MONTH,18);
        calendar.set(Calendar.HOUR_OF_DAY,13);
        calendar.set(Calendar.MINUTE,5);
        calendar.set(Calendar.SECOND,0);
        long timeInMillis = calendar.getTimeInMillis();
        long myLong = System.currentTimeMillis() - timeInMillis;
        System.out.println(myLong/1000/3600/24);

       /* Date now = calendar.getTime();// new Date(calendar.getTimeInMillis());
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd a hh:mm:ss");
        String format = dateFormat.format(now);
        System.out.println(format);*/
    }
}
